﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TJ_PatientChargeModeWebForm.aspx.cs" Inherits="Anke.SHManage.Web.Reports.TJ_PatientChargeModeWebForm" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../Content/EasyUI/jquery.js"></script>
    <script src="../Content/EasyUI/jquery.easyui.js"></script>
    <script src="../Content/EasyUI/locale/easyui-lang-zh_CN.js"></script>
    <link href="../Content/EasyUI/themes/icon.css" rel="stylesheet" />
    <link href="../Content/EasyUI/themes/default/easyui.css" rel="stylesheet" />
    <script src="../Scripts/jquery.AnkeExtend.js"></script>
    <script type="text/javascript">
        //页面加载
        $(document).ready(function () {
            DisableBackspace();
            reload();
        });
        function fillCombobox() {

            //取所属分中心的下拉框的值
            $("#Center").combobox({
                url: "../BB/AllDictionary/GetCenterName",
                valueField: 'ID',
                textField: 'Name',
                editable: false,
                panelHeight: 'auto',
                multiple: true,
                prompt: '--请选择--',
                onSelect: function (rec) {
                    var ids = $('#Center').combobox('getValues');
                    //根据分中心取分站
                    $("#Station").combobox({
                        url: "../BB/AllDictionary/GetSationName?centerID=" + ids,
                        method: 'POST',
                        valueField: 'ID',
                        textField: 'Name',
                       
                        multiple: true,
                        editable: false,
                        onSelect: function () {
                            $('#Station').combobox('getValues')
                        },
                        onUnselect: function () {
                            $('#Station').combobox('getValues')
                        }
                    });
                    $("#Station").combobox('clear');
                },
                onUnselect: function (rec) {
                    var ids = $('#Center').combobox('getValues');
                    //根据分中心取分站
                    $("#Station").combobox({
                        url: "../BB/AllDictionary/GetSationName?centerID=" + ids,
                        method: 'POST',
                        valueField: 'ID',
                        textField: 'Name',
                       
                        multiple: true,
                        editable: false
                        //onSelect: function () {
                        //    //$('#Station').combobox('getValues')
                        //},
                        //onUnselect: function () {
                        //    $('#Station').combobox('getValues')
                        //}
                    });
                    // $("#Station").combobox('setValues', '');
                    $("#Station").combobox('clear');
                },
            });

            var centers = $('#Center').combobox('getValues');
            $("#Station").combobox({
                url: "../BB/AllDictionary/GetSationName?centerID=" + centers,
                method: 'POST',
                valueField: 'ID',
                textField: 'Name',
                multiple: true,
              
                editable: false,
                onSelect: function () {
                    $('#Station').combobox('getValues')
                },
                onUnselect: function () {
                    $('#Station').combobox('getValues')
                }
            });

            //取事件类型           
            var urlstr = "../BB/AllDictionary/GetPatientVersion";
            $.EUIcomboboxForReport("#txtPatientVersion", {
                url: urlstr,
                valueField: 'Name',
                textField: 'Name',
                panelHeight: 'auto',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]

            });

            //病种分类
            var urlstr = "../BB/AllDictionary/GetDiseasesClassifications";
            $.EUIcomboboxForReport("#txtDiseasesClassification", {
                url: urlstr,
                valueField: 'Name',
                textField: 'Name',
                editable: false,
                panelHeight: 'auto',
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]


            });
            //病情类型
            var urlstr = "../BB/AllDictionary/GetIllnessClassification";
            $.EUIcomboboxForReport("#txtIllnessClassification", {
                url: urlstr,
                valueField: 'Name',
                textField: 'Name',
                editable: false,
                panelHeight: 'auto',
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]

            });

            //急救效果
            var urlstr = "../BB/AllDictionary/GetFirstAidEffect";
            $.EUIcomboboxForReport("#txtFirstAidEffect", {
                url: urlstr,
                valueField: 'Name',
                textField: 'Name',
                editable: false,
                panelHeight: 'auto',
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]

            });
            //死亡类型
            var urlstr = "../BB/AllDictionary/GetDeathCase";
            $.EUIcomboboxForReport("#txtDeathCase", {
                url: urlstr,
                valueField: 'Name',
                textField: 'Name',
                editable: false,
                panelHeight: 'auto',
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]


            });

            $('#IFNormalEnd').combobox({
                valueField: 'ID',
                textField: 'Name',
                method: 'get',
                editable: false,
                panelHeight: 'auto',
                multiple: false,
                //value: '--请选择--',
                prompt: '--请选择--',
                data: [
                {
                    ID: '1',
                    Name: '正常结束',
                }, {
                    ID: '0',
                    Name: '异常结束'
                }]
            });

            $('#OrderByWay').combobox({
                valueField: 'ID',
                textField: 'Name',
                method: 'get',
                editable: false,
                panelHeight: 'auto',
                multiple: false,
                // value: 'PaidMoney',
                prompt: '--请选择--',
                data: [
                {
                    ID: 'ReceivableTotal',
                    Name: '应收金额',
                }, {
                    ID: 'PaidMoney',
                    Name: '实收金额'
                }, {
                    ID: 'MeasureFeeTotal',
                    Name: '治疗费'
                }, {
                    ID: 'ConsumableFeeTotal',
                    Name: '材料费'
                }, {
                    ID: 'ExamineFeeTotal',
                    Name: '检查费'
                }, {
                    ID: 'DrugFeeTotal',
                    Name: '药费'
                }, {
                    ID: 'YLFee',
                    Name: '医疗费'
                }, {
                    ID: 'EmergencyFee',
                    Name: '急救费'
                }, {
                    ID: 'WaitingFee',
                    Name: '等候费'
                }, {
                    ID: 'CarFee',
                    Name: '车费'
                }
                ]
            });
            $('#upDown').combobox({
                valueField: 'ID',
                textField: 'Name',
                method: 'get',
                editable: false,
                panelHeight: 'auto',
                multiple: false,
                // value: 'desc',
                prompt: '--请选择--',
                data: [
                {
                    ID: '',
                    Name: '升序',
                }, {
                    ID: 'desc',
                    Name: '降序'
                }
                ]
            });

            //add2021-10-15 plq 医保上线移植，新增 收费方式 和 支付宝微信审核 start
            //取收费方式          
            $('#ChargeType').combobox({
                valueField: 'ID',
                textField: 'Name',
                method: 'get',
                editable: false,
                panelHeight: 'auto',
                multiple: false,
                // value: 'desc',
                prompt: '--请选择--',
                data: [
                {
                    ID: '-1',
                    Name: '--请选择--',
                },
                {
                    ID: '0',
                    Name: '现金',
                }, {
                    ID: '1',
                    Name: '支付宝'
                }, {
                    ID: '2',
                    Name: '微信'
                }, {
                    ID: '3',
                    Name: '银行转账'
                }, {
                    ID: '4',
                    Name: '医保'
                }
                , {
                    ID: '5',
                    Name: '医保退款'
                }
                , {
                    ID: '6',
                    Name: '离休'
                }
                , {
                    ID: '7',
                    Name: '分币误差'
                }
                ]
            });

            //2020-05-14 zch
            $('#IFAccountCheck').combobox({
                valueField: 'ID',
                textField: 'Name',
                method: 'get',
                editable: false,
                panelHeight: 'auto',
                multiple: false,
                //value: '--请选择--',
                prompt: '--请选择--',
                data: [
                     {
                         ID: '',
                         Name: '全部',
                     },
                {
                    ID: '1',
                    Name: '已审核',
                }, {
                    ID: '0',
                    Name: '未审核'
                }]
            });
            //医保上线移植，新增 收费方式 和 支付宝微信审核 end

        };
        // 实现UpdatePanel中可以再添加easyUI的样式
        function reload() {
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        }
        function EndRequestHandler() {
            fillCombobox();
            $('#StartDate').datetimebox();
            $('#EndDate').datetimebox();
            $('#txtAgentWorkID').textbox();
            $('#txtDoctorAndNurse').textbox();
            $('#txtMeasures').textbox();
            $('#txtFirstImpression').textbox();
            $('#txtSendAddress').textbox();
            $('#Driver').textbox();
            $('#StretcherBearersI').textbox();
            $('#DriverWC').textbox();
            $('#DoctorWC').textbox();
            $('#StretcherBearersWC').textbox();
        }


    </script>
</head>
<body>
    <form id="form1" runat="server">

        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table>
                    <tr>
                        <td>查询时间：</td>
                        <td>
                            <asp:TextBox ID="StartDate" class="easyui-datetimebox" Style="width: 150px" runat="server" editable="false"></asp:TextBox>
                        </td>
                        <td style="text-align: center">至</td>
                        <td>
                            <asp:TextBox ID="EndDate" class="easyui-datetimebox" Style="width: 150px" runat="server" editable="false"></asp:TextBox>
                        </td>


                        <td style="text-align: right">事件类型：</td>
                        <td>
                            <asp:TextBox ID="txtPatientVersion" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                        <td style="text-align: right">填写病历人工号：</td>
                        <td>
                            <asp:TextBox ID="txtAgentWorkID" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                          <td style="text-align: right">是否正常结束：</td>
                        <td>
                            <asp:TextBox ID="IFNormalEnd" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                       
                    </tr>
                    <tr>
                        <td style="text-align: right">分中心：</td>
                        <td>
                            <asp:TextBox ID="Center" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>

                        </td>
                        <td style="text-align: right">分站：</td>
                        <td>
                            <asp:TextBox ID="Station" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>

                        </td>
                      

                       
                         <td style="text-align: right">司机工号：</td>
                        <td>
                            <asp:TextBox ID="DriverWC" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                        <td style="text-align: right">医生/护士工号：</td>
                        <td>
                            <asp:TextBox ID="DoctorWC" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                         <td style="text-align: right">担架员工号：</td>
                        <td>
                            <asp:TextBox ID="StretcherBearersWC" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">病情类型：</td>
                        <td>
                            <asp:TextBox ID="txtIllnessClassification" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                          <td style="text-align: right">病种分类：</td>
                        <td>
                            <asp:TextBox ID="txtDiseasesClassification" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
 <td style="text-align: right">司机姓名：</td>
                        <td>
                            <asp:TextBox ID="Driver" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                         <td style="text-align: right">医生/护士姓名：</td>
                        <td>
                            <asp:TextBox ID="txtDoctorAndNurse" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                         <td style="text-align: right">担架员姓名：</td>
                        <td>
                            <asp:TextBox ID="StretcherBearersI" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        
                        <td style="text-align: right">死亡类型：</td>
                        <td>
                            <asp:TextBox ID="txtDeathCase" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                        <td style="text-align: right">急救效果：</td>
                        <td>
                            <asp:TextBox ID="txtFirstAidEffect" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                        <td style="text-align: right">诊断：</td>
                        <td>
                            <asp:TextBox ID="txtFirstImpression" class="easyui-textbox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                      
                  
                        <td style="text-align: right" id ="orderType" runat="server" >排序方式：</td>
                        <td>
                            <asp:TextBox ID="OrderByWay" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                        <td style="text-align: right" id="upordown" runat="server" >升序&降序：</td>
                        <td>
                            <asp:TextBox ID="upDown" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                        </td>
                    </tr>
                    <tr>
                        <!--2021-10-15 plq 医保上线移植：新增 收费方式、支付宝微信审核、是否医保时间-->
                        <td style="text-align: right">
                            <label id="labelChargeType" runat="server">收费方式：</label>
                        </td>
                        <td>
                            <asp:TextBox ID="ChargeType" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                        <!--2021-10-13 plq 医保上线移植：支付宝微信审核、是否医保时间-->
                        <td style="text-align: right">
                            <asp:Label ID="LabelZhiFuBaoWXSFSH" runat="server" Text="微信支付宝审核："></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="IFAccountCheck" class="easyui-combobox" Style="width: 150px" runat="server"></asp:TextBox>
                        </td>
                        <td style="text-align: right">
                            <asp:Label ID="Label_IFYiBaoTime" runat="server" Text="是否医保时间："></asp:Label>
                        </td>
                        <td>
                            <asp:RadioButtonList ID="RadioButtonList_IFYiBaoTime" runat="server"  RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True" value="0">否</asp:ListItem>
                                <asp:ListItem  value="1">是</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>

                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div style="background-color: #fafafa; border-left: 1px solid scrollbar; overflow: hidden; height: 100%;">
            <rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="100%" Height="100%"  SizeToReportContent="True"></rsweb:ReportViewer>
        </div>
    </form>
</body>
</html>
